<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
  <f:layout name="Default" />

  This template displays a NEW form for the current domain object.

  If you modify this template, do not forget to change the overwrite settings
  in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
      Private:
        Templates:
          New.html: keep

  Otherwise your changes will be overwritten the next time you save the extension in the extension builder

  <f:section name="content">
    <f:flashMessages />
    <f:render partial="FormErrors" />
    <link rel="stylesheet" type="text/css" href="{f:uri.resource(path:'Css/style.css')}" />
    <div class="panel panel-default">
	    <div class="panel-body">
			<f:form action="create" enctype="multipart/form-data" name="photos" object="{photos}" >
	            <fieldset>
	                <legend>新增照片</legend>
	                <f:form.hidden name="albumuid" value="{albumuid}" />
	                <table  id="orderTable" class="tx_projectsystem table table-hover table-light">
						<thead>
							<tr class="uppercase">
								<th width="30%">上传照片<font color="red" class="fontred">*</font></th>
								<th width="30%">标题</th>
								<th width="30%">描述</th>
								<th class="text-center"><input type="button" name="insert"  value="增加一行" class="btn btn-info btn-xs" onclick="insertNewRow()" /></th>
							</tr>
						</thead>
	                    <tbody>
							<tr id="row0">
								<td>
									<input class="form-control spinner" id="photo0" type="file" name="tx_photoalbum_photos[photo][]">
								</td>
								<td><f:form.textfield name="title[]" id="title0" class="form-control" /></td>
								<td><f:form.textarea name="description[]" id="description0" class="form-control" rows="2" /></td>
								<td  class="text-center"></td>
							</tr>
						</tbody>
					</table>
	                <div class="horizontal-space"></div>
	                <div class="form-buttons">
	                    <f:form.submit id="saveData" class="btn btn-success"  value="保存数据" />
						<f:link.action action="list"   arguments="{album:albumuid}"  class="btn btn-default">返回列表</f:link.action>
	                </div>
	            </fieldset>
	        </f:form>
    		<script src="{f:uri.resource(path:'JavaScript/newphoto.js')}" ></script>
	    </div>
	</div>
    
  </f:section>
</html>